#!/bin/bash

pandoc.static "$1" \
    -H chapter_break.tex \
    -V linkcolor:blue \
    -V geometry:a4paper \
    -V geometry:margin=2cm \
    --latex-engine=xelatex \
    -o build/"$2"

pdftk build/"$2" update_info bookmark.txt \
      output dist/"$2"
